const router = require("koa-router")();
const { getaddres, search, addNewdreass, deleteRent, changeRentl, find, findRental, deleteAdd, updataAddre, changePage, Rental, RentalSearch } = require("../controller/home");
const auth = require("../middleware/auth");


router.get('/getaddres', auth, getaddres)
router.post('/changepage', auth, changePage)

router.post('/search', auth, search)
router.post('/addNewdreass', auth, addNewdreass)
router.post('/Rental', auth, Rental)
router.post('/RentalSearch', auth, RentalSearch)
router.post('/deleteAdd', auth, deleteAdd)
router.post('/updataAddre', auth, updataAddre)
router.post('/find', auth, find)
router.post('/findRental', auth, findRental)
router.post('/changeRentl', auth, changeRentl)
router.post('/deleteRent', auth, deleteRent)
module.exports = router